﻿<!-- 文档类型声明 -->
<!DOCTYPE html> 
<!-- 文档使用中文 -->                 
<html lang = "zh-cn">
  <head>
	<!-- 网页标题 -->
    <title>明日云备份</title>
	<!-- 设置当前文档的编码格式 -->
	<meta charset = "utf-8">
	<!-- 设置IE浏览器的解析模式 -->
	<meta http-equiv = "X-UA-Compatible" content = "IE=edge">
	<!-- 设置视窗 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 1.加载Bootstrap的层叠样式表 -->
    <link rel="stylesheet" href="<?php echo base_url();?>/public/css/bootstrap.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
	<div class="page-header">
		<h2 class = "col-sm-offset-1"><span class = "glyphicon glyphicon-folder-open"></span>&nbsp;&nbsp;&nbsp;明日云备份</h2>
	</div>
	
	<div class="col-sm-3">
		<div class="well">
			<form class="form-horizontal" method = "post" action = "<?php echo site_url('upload');?>">
				<p class = "col-sm-offset-1 text-danger"><?php echo $login_error;?></p>
				<div class="form-group">
					<label for="inputUsername" class="col-sm-4 control-label">用户名:</label>
					<div class="col-sm-6">
						<input type="text" name = "username" class="form-control" id="inputUsername" placeholder="Username" value = "<?php echo set_value('username');?>">
					</div>
				</div>
				<?php echo form_error('username','<p class="col-sm-offset-1 text-danger">','</p>');?>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-4 control-label">密码:</label>
					<div class="col-sm-6">
						<input type="password" name = "password" class="form-control" id="inputPassword" placeholder="Password" value = "<?php echo set_value('password');?>">
					</div>
				</div>
				<?php echo form_error('password','<p class="col-sm-offset-1 text-danger">','</p>');?>
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-3">
						<button type="submit" class="btn btn-default">登录</button>
					</div>
					<div class="col-sm-3">
						<a href="#" role="button" class="btn btn-default">注册</a>
					</div>
				</div>
			</form>
		</div>
		<div>
			<img src="<?php echo base_url();?>/public/pictures/cloud.jpg" style = "left:0px;top:0px;height:250px;width:305px">
		</div>
	</div>
    